package com.helper.easyHelper;

import cn.hutool.core.util.ArrayUtil;
import cn.hutool.core.util.StrUtil;
import com.helper.easyHelper.utils.DBUtils;

import java.sql.*;
import java.util.Map;

/**
 * @author 狠穿
 * @version 1.0.0
 * @date 2023/2/9
 * @function
 */
public class BaseDao{

    public ResultSet query(String sql,Class clazz,Object ...params){

       try{
           Connection connection = DBUtils.getConnection();
           //connection.prepareStatement()
           return null;
       }catch (Exception e){
           return null;
       }
    }

    public static void main(String[] args) {
        ResultSet query = new BaseDao().query("select * from t01_device_type where code = ?", Map.class,"DNB");
        System.out.println(query);
    }


}
